﻿/* 1. Write an if statement that examines two integer variables 
 * and exchanges their values if the first one is greater than the second one. */

using System;

public class SortInIncreasingOrder
{
    public static void Main()
    {
        int first;
        int second;

        Console.Write("First number = ");
        first = int.Parse(Console.ReadLine());
        Console.Write("Second number = ");
        second = int.Parse(Console.ReadLine());
        Console.WriteLine("------------");

        if (first > second)
        {
            first += second;
            second = first - second;
            first -= second;
        }

        Console.WriteLine("Sorted in increasing order: {0}, {1}.", first, second);
    }
}